package com.weitu.occupationalHealth.medicalPlan.service.impl;

import com.weitu.occupationalHealth.medicalPlan.entity.MedicalPlan;
import com.weitu.occupationalHealth.medicalPlan.mapper.MedicalPlanMapper;
import com.weitu.occupationalHealth.medicalPlan.service.MedicalPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by WT-SUN on 2017/4/1.
 */
@Service
public class MedicalPlanServiceImpl implements MedicalPlanService {
    @Autowired
    private MedicalPlanMapper medicalPlanMapper;

    @Override
    public int insertSelective(MedicalPlan record) {
        return medicalPlanMapper.insertSelective(record);
    }

    @Override
    public Map selectById(String id) {
        return medicalPlanMapper.selectById(id);
    }

    @Override
    public int updateByIdSelective(MedicalPlan record) {
        return medicalPlanMapper.updateByIdSelective(record);
    }

    @Override
    public List<Map> selectAllPlans(Map map) {
        return medicalPlanMapper.selectAllPlans(map);
    }

    @Override
    public int queryPlanCount(Map map) {
        return medicalPlanMapper.queryPlanCount(map);
    }

    @Override
    public int deleteById(String id) {
        return medicalPlanMapper.deleteById(id);
    }
}
